import request from "@/utils/request";

// 公告列表
export const noticeMgrListService = (params) => {
  return request.get("/admin/sys-notice/page", { params });
};

// 添加公告
export const noticeMgrAddService = (data) => {
  return request.post("/admin/sys-notice/save", data);
};

// 修改公告
export const noticeMgrUpdateService = (data) => {
  return request.put("/admin/sys-notice/update", data);
};

// 删除公告
export const noticeMgrDeleteService = (data) => {
  return request.delete(`/admin/sys-notice/batchRemove`, { data });
};

// 发布通知
export const noticeMgrPublishService = (id) => {
  return request.post(`/admin/sys-notice/socket/push/${id}`);
};
